﻿CREATE FUNCTION [dbo].[RequestStatusList]
( @TrackerRequestID int
)RETURNS TABLE
AS
RETURN(
SELECT s.* FROM (SELECT StatusID FROM t_TrackerRequest WHERE ID = @TrackerRequestID) tr CROSS APPLY NextMenusList(StatusID) s
)


